from decimal import Decimal



def myeval(string):
    sign = '()+-*/'
    strold = string
    numlist = []
    signlist = []
    temp = ''
    for i in sign:
        string = string.replace(i, ' ')
    
    for index, i in enumerate(string):
        if i.isdigit() or i == '.':
            temp += i
            if index == len(string) - 1:
                numlist.append(temp)
                signlist.append(' ')
        else:
            if temp != '':
                numlist.append(temp)
                temp = ''
                signlist.append(' ')
            numlist.append(i)
            signlist.append(strold[index])

    string = ''
    for index, i in enumerate(numlist):
        if i != ' ':
            string += 'Decimal("' + i + '")'
        else:
            string += signlist[index]

    return eval(string)

if __name__ == "__main__":
    
    test = '(11)*0.17'
    print(eval(test))
    print(test)
    print(myeval(test))
    float(myeval(test))
    